package com.example.demo.bizhan.framework;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @description: xxx
 * @time: 2020/10/27 15:09
 * @author: baojinlong
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@PkBeanAnnotation("t_user")
public class User {
    private Integer id;
    private String name;
    private Integer age;
    @PkFieldAnnotation("my_birthday")
    private Date birthday;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", birthday=" + birthday +
                '}';
    }
}
